/**
 * Dynamically generated SNApp Object script.
 * 
 * This script provides an interface to the snapp.Object you created.
 * 
 * The DBObject object extends the snapp.Object.
 */
 
var SNAppDBObject = new Class({
	Extends: snapp.Object,
	
	options: {
		actions: {
			load: 'secure.Load',
			save: 'object.Save',
			list: 'secure.List',
			count: 'secure.Count'
		}
	},
	
	// constructor
	initialize: function(options) {
		
		this.setOptions(options);
		
		// set url
		this.options['url'] = snapp.getURL('snapp_util');
		
		// super()
		this.parent(this.options);
		
		// set the global identifiers
		this.setProperty("SNAppGlobalId","SNAPP_VWDBOBJECT");
		this.setProperty("saveGlobalId","SNAPP_DBOBJECT");
		this.setProperty("SNAppIdName","id");
	}
}); 
